//
//  MainTabBarController.m
//  j绝版新闻客户端
//
//  Created by weige on 16/5/9.
//  Copyright © 2016年 weige. All rights reserved.
//

#import "MainTabBarController.h"
#import "NewsTableViewController.h"
#import "SearchViewController.h"
#import "CollectViewController.h"
#import "LoveHomeViewController.h"
@interface MainTabBarController ()
{

    UIImageView *imageView;
}
@end

@implementation MainTabBarController
@synthesize tabimag;

- (instancetype)init
{
    self = [super init];
    if (self) {
        imageView=[[UIImageView alloc]initWithFrame:ScreenBounds];
        imageView.image=[UIImage imageNamed:@"bg1.jpg"];
        
        [self.view addSubview:imageView];
        
        [UIImageView animateWithDuration:2.0 animations:^{
            [imageView setTransform:CGAffineTransformMakeScale(1.2 , 1.2)];
            
            imageView.alpha=0;
            //imageView.removeFromSuperview;
            //[imageView removeFromSuperview];
            imageView=nil;
        }];
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self CreateViewsInforTabBar];
    
}

-(void)CreateViewsInforTabBar
{
    NewsTableViewController *home=[[NewsTableViewController alloc]init];
    //LoveHomeViewController *home=[[LoveHomeViewController alloc]init];
    UINavigationController *nav1=[[UINavigationController alloc]initWithRootViewController:home];
    self.viewControllers=@[nav1];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
